/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.Instrucoes;

import br.com.Abstracts.AbstractTratadorLexicoToken;
import br.com.model.Token;

/**
 *
 * @author mariorsjr
 */
public class InstrucaoIf extends AbstractTratadorLexicoToken{

    @Override
    public void isValido(Token token) {
        if ("if".equals(token.getLexema().toLowerCase())) {
            token.setToken("Instrução If");
        } else if (this.sucessor != null) {
            this.sucessor.isValido(token);
        }
    }
    
}
